package com.ny.zuoye2567.dao.service;

import com.ny.zuoye2567.dao.shiti.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductService {
    public List<Product> findAllProduct() throws SQLException,ClassNotFoundException;

    int insertProduct(Product newProduct);

    int deleteProduct(String delName);

    Product findByName(String oldName);

    int updateProduct(Product productToUpdate);
}
